package com.atguigu.tingshu.model.order;

import com.atguigu.tingshu.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * <p>
 *     订单详情
 * </p>
 * @author sun
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("order_detail")
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class OrderDetail extends BaseEntity {

	@Serial
	private static final long serialVersionUID = 1L;
	/**
	 * 订单id
	 */
	@TableField("order_id")
	private Long orderId;
	/**
	 * 付费项目id
	 */
	@TableField("item_id")
	private Long itemId;
	/**
	 * 付费项目名称
	 */
	@TableField("item_name")
	private String itemName;
	/**
	 * 付费项目图片url
	 */
	@TableField("item_url")
	private String itemUrl;
	/**
	 * 付费项目价格
	 */
	@TableField("item_price")
	private BigDecimal itemPrice;

}